package demo;

import redis.clients.jedis.Jedis;

import java.util.Map;

public class Test1 {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("hadoop10",6379);
        jedis.auth("123");

        jedis.hset("person","username","zs");
        jedis.hset("person","age","20");

        Map<String, String> map = jedis.hgetAll("person");
        String s1 = jedis.hget("person", "username");

        jedis.close();
    }
}
